import request from '@/utils/request'

export default {
  getList: (data) => {
    return request({
      url: '/admin/queryWikiContentPage',
      method: 'post',
      data: data
    })
  },
  add: (data) => {
    return request({
      url: '/admin/wikiContentAdd',
      method: 'post',
      data: data
    })
  },
  update: (data) => {
    return request({
      url: '/admin/wikiContentUpdate',
      method: 'post',
      data: data
    })
  },
  delete: (data) => {
    return request({
      url: '/admin/wikiContentDelete',
      method: 'post',
      data: data
    })
  },
  //  显示隐藏
  updateStatus: (data) => {
    return request({
      url: '/admin/wikiContentUpdateStatus',
      method: 'post',
      data: data
    })
  },
  //  获取全部作者
  getAuthorList: () => {
    return request({
      url: '/admin/queryWikiAuthorPage',
      method: 'post',
      data: {pageNo: 0, pageSize: 999}
    })
  },
  //  获取全部分类
   getTypeList: () => {
    return request({
      url: '/admin/queryWikiTypePage',
      method: 'post',
      data: {pageNo: 0, pageSize: 999}
    })
  },
}
